package com.etalk.crm.serviceImpl;

import com.etalk.crm.dao.SmsTemplateMapper;
import com.etalk.crm.pojo.SmsTemplate;
import com.etalk.crm.service.SmsTemplateService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author: Jordan
 * @date: 2019/1/9 20:06
 * @description:
 */
@Service
public class SmsTemplateServiceImpl implements SmsTemplateService {

    @Resource
    private SmsTemplateMapper smsTemplateMapper;

    /**
     * 查询短信模板内容
     * @return 模板
     */
    @Override
    public List<SmsTemplate> searchSmsTemplateByState() {
        return smsTemplateMapper.selectSmsTemplateListByState();
    }
}
